package org.BooCrack.bookstore.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "order_detail")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderDetail {
    @Id
    @Column(name = "order_detail_id")
    private Integer orderDetailId;

    @Column(name = "order_number")
    private String orderNumber;

    @Column(name = "order_id")
    private String orderId;

    @Column(name = "book_id")
    private Integer bookId;

    @Column(name = "store_id")
    private Integer storeId;

    @Column(name = "mount")
    private Integer mount;

    @Column(name = "unit_price")
    private BigDecimal unitPrice;

    @Column(name = "total_price")
    private BigDecimal totalPrice;

    @Column(name = "post_status")
    private String postStatus;

    @Column(name = "delivery_time")
    private Date deliveryTime;
    @Column(name = "receive_status")
    private String receiveStatus;

    @Column(name = "image_url")
    private String imageUrl;

    @Column(name = "book_name")
    private String bookName;

}